<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JSON Voorhees: jsonv::serialization_context Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
</script><script type="text/javascript" async src="http://www.mathjax.org/mathjax/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">JSON Voorhees
   </div>
   <div id="projectbrief">Killer JSON for C++</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classjsonv_1_1serialization__context.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classjsonv_1_1serialization__context-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">jsonv::serialization_context Class Reference<div class="ingroups"><a class="el" href="group__Serialization.html">Serialization</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for jsonv::serialization_context:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
 <div class="center">
  <img src="classjsonv_1_1serialization__context.png" usemap="#jsonv::serialization_5Fcontext_map" alt=""/>
  <map id="jsonv::serialization_5Fcontext_map" name="jsonv::serialization_5Fcontext_map">
<area href="classjsonv_1_1context__base.html" title="Provides extra information to routines used for extraction. " alt="jsonv::context_base" shape="rect" coords="0,0,162,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a2cc730476dc157437e76e3eca2659c90"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjsonv_1_1serialization__context.html#a2cc730476dc157437e76e3eca2659c90">serialization_context</a> ()</td></tr>
<tr class="memdesc:a2cc730476dc157437e76e3eca2659c90"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new instance using the default <code>formats</code> (<code><a class="el" href="classjsonv_1_1formats.html#a4403758d5e87d0862a04fc5d9171991d" title="Get the global formats instance. ">formats::global</a></code>).  <a href="#a2cc730476dc157437e76e3eca2659c90">More...</a><br /></td></tr>
<tr class="separator:a2cc730476dc157437e76e3eca2659c90"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a884e5ab82b0954db49ff05df6b5d1727"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjsonv_1_1serialization__context.html#a884e5ab82b0954db49ff05df6b5d1727">serialization_context</a> (<a class="el" href="classjsonv_1_1formats.html">jsonv::formats</a> fmt, const <a class="el" href="structjsonv_1_1version.html">jsonv::version</a> &amp;ver=<a class="el" href="structjsonv_1_1version.html">jsonv::version</a>(), const void *userdata=nullptr)</td></tr>
<tr class="memdesc:a884e5ab82b0954db49ff05df6b5d1727"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new instance using the given <em>fmt</em> and <em>ver</em>.  <a href="#a884e5ab82b0954db49ff05df6b5d1727">More...</a><br /></td></tr>
<tr class="separator:a884e5ab82b0954db49ff05df6b5d1727"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e7bdd57f7528c09fb4ffbc397fb50bb"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a9e7bdd57f7528c09fb4ffbc397fb50bb"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classjsonv_1_1value.html">value</a>&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classjsonv_1_1serialization__context.html#a9e7bdd57f7528c09fb4ffbc397fb50bb">to_json</a> (const T &amp;from) const</td></tr>
<tr class="memdesc:a9e7bdd57f7528c09fb4ffbc397fb50bb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convenience function for converting a C++ object into a JSON value.  <a href="#a9e7bdd57f7528c09fb4ffbc397fb50bb">More...</a><br /></td></tr>
<tr class="separator:a9e7bdd57f7528c09fb4ffbc397fb50bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a24c2bb8e82ecc93fe6b64ff5ec3516e2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classjsonv_1_1value.html">value</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjsonv_1_1serialization__context.html#a24c2bb8e82ecc93fe6b64ff5ec3516e2">to_json</a> (const std::type_info &amp;type, const void *from) const</td></tr>
<tr class="memdesc:a24c2bb8e82ecc93fe6b64ff5ec3516e2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Dynamically convert a type into a JSON value.  <a href="#a24c2bb8e82ecc93fe6b64ff5ec3516e2">More...</a><br /></td></tr>
<tr class="separator:a24c2bb8e82ecc93fe6b64ff5ec3516e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classjsonv_1_1context__base"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classjsonv_1_1context__base')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classjsonv_1_1context__base.html">jsonv::context_base</a></td></tr>
<tr class="memitem:a43f445f3d44d5bd78e1cc9dee440ca63 inherit pub_methods_classjsonv_1_1context__base"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjsonv_1_1context__base.html#a43f445f3d44d5bd78e1cc9dee440ca63">context_base</a> ()</td></tr>
<tr class="memdesc:a43f445f3d44d5bd78e1cc9dee440ca63 inherit pub_methods_classjsonv_1_1context__base"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new instance using the default <code>formats</code> (<code><a class="el" href="classjsonv_1_1formats.html#a4403758d5e87d0862a04fc5d9171991d" title="Get the global formats instance. ">formats::global</a></code>).  <a href="classjsonv_1_1context__base.html#a43f445f3d44d5bd78e1cc9dee440ca63">More...</a><br /></td></tr>
<tr class="separator:a43f445f3d44d5bd78e1cc9dee440ca63 inherit pub_methods_classjsonv_1_1context__base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7ae9085313c6150a02a1385607ee5929 inherit pub_methods_classjsonv_1_1context__base"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjsonv_1_1context__base.html#a7ae9085313c6150a02a1385607ee5929">context_base</a> (<a class="el" href="classjsonv_1_1formats.html">jsonv::formats</a> fmt, const <a class="el" href="structjsonv_1_1version.html">jsonv::version</a> &amp;ver=<a class="el" href="structjsonv_1_1version.html">jsonv::version</a>(1), const void *userdata=nullptr)</td></tr>
<tr class="memdesc:a7ae9085313c6150a02a1385607ee5929 inherit pub_methods_classjsonv_1_1context__base"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new instance using the given <em>fmt</em>, <em>ver</em> and <em>p</em>.  <a href="classjsonv_1_1context__base.html#a7ae9085313c6150a02a1385607ee5929">More...</a><br /></td></tr>
<tr class="separator:a7ae9085313c6150a02a1385607ee5929 inherit pub_methods_classjsonv_1_1context__base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac9fb2249e1d0067b334325fc9d73342b inherit pub_methods_classjsonv_1_1context__base"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classjsonv_1_1formats.html">jsonv::formats</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjsonv_1_1context__base.html#ac9fb2249e1d0067b334325fc9d73342b">formats</a> () const</td></tr>
<tr class="memdesc:ac9fb2249e1d0067b334325fc9d73342b inherit pub_methods_classjsonv_1_1context__base"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the <code>formats</code> object backing extraction and encoding.  <a href="classjsonv_1_1context__base.html#ac9fb2249e1d0067b334325fc9d73342b">More...</a><br /></td></tr>
<tr class="separator:ac9fb2249e1d0067b334325fc9d73342b inherit pub_methods_classjsonv_1_1context__base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5adeb5450d5c481ad57518325cd39243 inherit pub_methods_classjsonv_1_1context__base"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="structjsonv_1_1version.html">jsonv::version</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjsonv_1_1context__base.html#a5adeb5450d5c481ad57518325cd39243">version</a> () const</td></tr>
<tr class="memdesc:a5adeb5450d5c481ad57518325cd39243 inherit pub_methods_classjsonv_1_1context__base"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the version this <code><a class="el" href="classjsonv_1_1extraction__context.html">extraction_context</a></code> was created with.  <a href="classjsonv_1_1context__base.html#a5adeb5450d5c481ad57518325cd39243">More...</a><br /></td></tr>
<tr class="separator:a5adeb5450d5c481ad57518325cd39243 inherit pub_methods_classjsonv_1_1context__base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad14c9dca86316d22d1553445c9752a91 inherit pub_methods_classjsonv_1_1context__base"><td class="memItemLeft" align="right" valign="top">const void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjsonv_1_1context__base.html#ad14c9dca86316d22d1553445c9752a91">user_data</a> () const</td></tr>
<tr class="memdesc:ad14c9dca86316d22d1553445c9752a91 inherit pub_methods_classjsonv_1_1context__base"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a pointer to arbitrary user data.  <a href="classjsonv_1_1context__base.html#ad14c9dca86316d22d1553445c9752a91">More...</a><br /></td></tr>
<tr class="separator:ad14c9dca86316d22d1553445c9752a91 inherit pub_methods_classjsonv_1_1context__base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock">
<p class="definition">Definition at line <a class="el" href="serialization_8hpp_source.html#l00636">636</a> of file <a class="el" href="serialization_8hpp_source.html">serialization.hpp</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a2cc730476dc157437e76e3eca2659c90"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2cc730476dc157437e76e3eca2659c90">&#9670;&nbsp;</a></span>serialization_context() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">jsonv::serialization_context::serialization_context </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create a new instance using the default <code>formats</code> (<code><a class="el" href="classjsonv_1_1formats.html#a4403758d5e87d0862a04fc5d9171991d" title="Get the global formats instance. ">formats::global</a></code>). </p>

</div>
</div>
<a id="a884e5ab82b0954db49ff05df6b5d1727"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a884e5ab82b0954db49ff05df6b5d1727">&#9670;&nbsp;</a></span>serialization_context() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">jsonv::serialization_context::serialization_context </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classjsonv_1_1formats.html">jsonv::formats</a>&#160;</td>
          <td class="paramname"><em>fmt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structjsonv_1_1version.html">jsonv::version</a> &amp;&#160;</td>
          <td class="paramname"><em>ver</em> = <code><a class="el" href="structjsonv_1_1version.html">jsonv::version</a>()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const void *&#160;</td>
          <td class="paramname"><em>userdata</em> = <code>nullptr</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Create a new instance using the given <em>fmt</em> and <em>ver</em>. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a9e7bdd57f7528c09fb4ffbc397fb50bb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9e7bdd57f7528c09fb4ffbc397fb50bb">&#9670;&nbsp;</a></span>to_json() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classjsonv_1_1value.html">value</a> jsonv::serialization_context::to_json </td>
          <td>(</td>
          <td class="paramtype">const T &amp;&#160;</td>
          <td class="paramname"><em>from</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Convenience function for converting a C++ object into a JSON value. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classjsonv_1_1formats.html#a379d16daeaa79d8238d6fb9c1097ba4a" title="Encode the provided value from into a JSON value. ">formats::to_json</a> </dd></dl>

<p class="definition">Definition at line <a class="el" href="serialization_8hpp_source.html#l00656">656</a> of file <a class="el" href="serialization_8hpp_source.html">serialization.hpp</a>.</p>

</div>
</div>
<a id="a24c2bb8e82ecc93fe6b64ff5ec3516e2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a24c2bb8e82ecc93fe6b64ff5ec3516e2">&#9670;&nbsp;</a></span>to_json() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classjsonv_1_1value.html">value</a> jsonv::serialization_context::to_json </td>
          <td>(</td>
          <td class="paramtype">const std::type_info &amp;&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const void *&#160;</td>
          <td class="paramname"><em>from</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Dynamically convert a type into a JSON value. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classjsonv_1_1formats.html#a379d16daeaa79d8238d6fb9c1097ba4a" title="Encode the provided value from into a JSON value. ">formats::to_json</a> </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>jsonv/<a class="el" href="serialization_8hpp_source.html">serialization.hpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>jsonv</b></li><li class="navelem"><a class="el" href="classjsonv_1_1serialization__context.html">serialization_context</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
  </ul>
</div>
</body>
</html>
